package com.service_api.service;

import com.service_api.model.CompanySituation;
import com.service_api.repository.CompanySituationRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CompanySituationService {
    @Autowired
    CompanySituationRepository companySituationRepository;

    public List<CompanySituation> getCompanySituationList(String city){
        return companySituationRepository.findAllByCity(city);
    }
}
